package com.avic.modules.record.rest;

import com.avic.modules.record.service.YesterdayService;
import org.springframework.stereotype.Component;

@Component
public class YesterdayTask {

    private final YesterdayService yesterdayService;

    public YesterdayTask(YesterdayService yesterdayService) {
        this.yesterdayService = yesterdayService;
    }

    public void runEquipment() {
        yesterdayService.updateYesterday();
    }
}
